/**
 * @project name:mail
 */
package com.situ.mail.shop.service.impl;


import com.situ.mail.base.BaseServiceImpl;
import com.situ.mail.base.BaseMapper;
import com.situ.mail.shop.dao.DirectoryMapper;
import com.situ.mail.shop.pojo.Directory;
import com.situ.mail.shop.service.DirectoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Author : yun&bo
 * @CreateDate : ==>2020/12/24 23:49
 * @ClassName : ==>
 * @Description : ==>
 * @Version
 */

@Service
public class DirectoryServiceImpl extends BaseServiceImpl<Directory> implements DirectoryService {

    @Autowired
    DirectoryMapper directoryMapper;

    @Override
    public BaseMapper<Directory> getBaseMapper() {
        return directoryMapper;
    }

    @Override
    public int insert(Directory entity) {
        entity.setActiveFlag(1);
        return super.insert(entity);
    }
}
